package com.molichuxing.gateway.bff.payment.entity.request.create;

import java.math.BigDecimal;

import javax.validation.constraints.NotNull;

import com.molichuxing.framework.dto.RequestRootDto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 生成预支付单dto
 * 
 * @author zoumingyu
 * @date 2019年10月16日
 *
 */
@Data
public class OrderPayCreateVo extends RequestRootDto {
	private static final long serialVersionUID = -8368635116980050896L;

	@ApiModelProperty(value = "订单号", required = true)
	@NotNull(message = "订单号不能为空")
	private Long orderCode;

	@ApiModelProperty(value = "排期id", required = false)
	private Integer scheduleId;

	@ApiModelProperty(value = "支付类型（1：订购，2：续订，3：加购，4：结算，5：还款，6：退租缴费）", required = true)
	@NotNull(message = "支付类型不能为空")
	private Integer payType;

	@ApiModelProperty(value = "支付方式( 11：智能终端-微信， 12：智能终端-支付宝， 13：智能终端-pos机，14：智能终端-密码键盘，21：微信-H5， 22：微信-APP，23：微信-公众号，24：微信-扫码，25：微信-小程序，31：支付宝-H5，32：支付宝-APP，41:线下支付，51：银联-H5，52：银联-APP)", required = false)
	private Integer payWay;
	
	@ApiModelProperty(value = "支付金额", required = true)
	@NotNull(message = "支付金额不能为空")
	private BigDecimal payAmount;
	
	@ApiModelProperty(value = "微信openid", required = false)
	private String openid;

	@ApiModelProperty(value = "用户请求ip", required = false, hidden = true)
	private String ip;
	
	@ApiModelProperty(value = "大屏cpu", required = false, hidden = true)
	private String cpuSerial;
}
